home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ADA Programming Guide
/
ADA Programming Guide.iso
/
ada_gnu
/
include
/
stdlib.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-30
|
1KB
|
57 lines
/* This is file stdlib.h */
/*
** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
**
** This file is distributed under the terms listed in the document
** "copying.dj", available from DJ Delorie at the address above.
** A copy of "copying.dj" should accompany this file; if not, a copy
** should be available from where this file was obtained. This file
** may not be distributed without a verbatim copy of "copying.dj".
**
** This file is distributed WITHOUT ANY WARRANTY; without even the implied
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef _STDLIB_H_
#define _STDLIB_H_
#include <djgppstd.h>
#define RAND_MAX 65536
typedef struct {
int quot;
int rem;
} div_t;
typedef struct {
long quot;
long rem;
} ldiv_t;
#ifdef __cplusplus
extern "C" {
#endif
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
div_t div(int number, int demon);
ldiv_t ldiv(long number, long demon);
#define MB_CUR_MAX __mb_cur_max
/* max = shift, four bytes of value (guess) */
#define MB_LEN_MAX 5
extern int __mb_cur_max;
int mblen(const char *s, size_t n);
size_t mbstowcs(wchar_t *wcs, const char *s, size_t n);
int mbtowc(wchar_t *pwc, const char *s, size_t n);
size_t wcstombs(char *s, const wchar_t *wcs, size_t n);
int wctomb(char *s, wchar_t wchar);
#ifdef __cplusplus
}
#endif
#endif